From 5201f25104650f93cf27fb189e7af26bc72408e1 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 14 Nov 2007 16:22:51 +0000 Subject: [PATCH] KML: Read Polygon/outerBoundaryIs/LinearRing as a track. --- kml.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/kml.c b/kml.c index 9060ee9e9..655e3b917 100644 --- a/kml.c +++ b/kml.c @@ -142,6 +142,7 @@ xg_tag_mapping kml_map[] = { { wpt_coord, cb_cdata, "/Placemark/Point/coordinates" }, { wpt_icon, cb_cdata, "/Placemark/Style/Icon/href" }, { trk_coord, cb_cdata, "/Placemark/MultiGeometry/LineString/coordinates" }, + { trk_coord, cb_cdata, "/Placemark/Polygon/outerBoundaryIs/LinearRing/coordinates" }, { trk_coord, cb_cdata, "/Placemark/LineString/coordinates" }, { NULL, 0, NULL } }; @@ -592,6 +593,12 @@ static void kml_output_point(const waypoint *waypointp, const char *style) kml_output_lookat(waypointp); kml_output_timestamp(waypointp); kml_write_xml(0, "%s\n", style); +#if 0 + // If we were to try to spin track icon to indication direction + // of motion, it might look something like this. Unfortunately, + // doing that causes a huge performance problem in Google Earth. + kml_write_xml(0, "\n", 360 - waypointp->course); +#endif kml_write_xml(1, "\n"); if (floating) { kml_write_xml(0, "absolute\n"); -- 2.30.2